Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 10 - AppleTalk Addressing / AppleTalk Addressing Reference
Functions


OTSetAddressFromNBPString

Copies an NBP name string into an NBP address buffer.

C INTERFACE
size_t OTSetAddressFromNBPString (UInt8* addrBuf, 
                                  const char* nbpName, SInt32 len);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
addrBuf
A pointer to the NBP address buffer in which to store the NBP name string.
nbpName
A pointer to the NBP name string you wish to copy into the buffer.
len
The number of characters to copy.
DESCRIPTION
The OTSetAddressFromNBPString function copies the string indicated by the nbpName parameter into the buffer indicated by the addrBuf parameter. The len parameter indicates the number of characters to copy. A value of -1 copies the entire nbpName string. The function returns the number of bytes actually copied.

SEE ALSO
The NBP address structure is described in the section "The NBP Address Structure," beginning on page 10-17.

To copy the contents of an NBP entity into an NBP address structure, use the OTSetAddressFromNBPEntity function (page 10-27).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996